<template>
    <require from="./em-markdown-editor.less"></require>
    <div class="em-markdown-editor">
        <p class="read" show.bind="mode == 'rw' && !editing" click.delegate="toggleWriteHandler()">${value}</p>
        <div show.bind="mode =='w' || editing" class="write">
            <textarea ref="txtRef"></textarea>
        </div>
    </div>
</template>
